package com.qf.service.impl;

import com.qf.domain.User;
import com.qf.mapper.UserMapper;
import com.qf.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author wanghaotian
 * time:2022/12/12,0012 18:59
 * description:
 */

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    public User findUserByUsername(String username) {
        return userMapper.findUserByUsername(username);
    }

    public List<String> findRoles(int uid) {
        return userMapper.findRoles(uid);
    }

    public List<String> findPerms(int uid) {
        return userMapper.findPerms(uid);
    }
}
